<ion-view class="bg">
    <ion-header-bar class="bar bar-positive">
      <button class="button back-button buttons icon ion-ios-arrow-left button-clear" nav-direction="back" ui-sref="tab.workbench">返回</button>
      <h3 class="title">搜索运单</h3>
    </ion-header-bar>
    <div class="bar bar-header item-input-inset" style="margin-top: 44px;">
      <label class="item-input-wrapper">
        <i class="icon ion-ios-search placeholder-icon"></i>
        <input type="search" placeholder="运单号" id="searchWb" ng-model="search.parameter.WAYBILL_NO">
      </label>
      <i class="ion-qr-scanner" style="color: #666;font-size: 25px;margin-left: -25px;" ng-click="qrScanner()"></i>
    </div>
    <ion-content style="margin-top: 42px;">
      <ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
      <div ng-if="showloading" class="ion-spinner">
        <ion-spinner icon="lines" class="spinner-calm"></ion-spinner>
      </div>
      <ion-list class="myList" ng-if="showloading == false">
        <h5 ng-if="waybillData==''" class="notFound">未找到数据</h5>
        <li class="item li" ng-click="goDetail(data.ID,data.WAYBILL_STATUS)" ng-repeat="data in waybillData">
          <div>
            <i>承运单号</i>
            <i class="value" style="color: #ff9800">{{data.WAYBILL_NO}}</i>
          </div>
          <img src="img/waybillState-{{data.WAYBILL_STATUS}}.png" class="stateImg">
          <div>
            <i class="balanced">{{data.DEPARTURE_STATION}}</i>
            <i class="ion-arrow-right-a value arrow-right" ng-if="data.DESTINATION_NAME!=null"></i>
            <i class="value assertive">{{data.DESTINATION_NAME}}</i>
            <i class="ion-arrow-right-a value arrow-right" ng-if="data.DESTINATION_STATION!=null"></i>
            <i class="value energized">{{data.DESTINATION_STATION}}</i>
          </div>
          <div>
            <i>运费</i>
            <i class="value">{{data.FREIGHT_AMOUNT | number:2}}元</i>
          </div>
          <div>
            <i>代收款</i>
            <i class="value">{{data.AGENCY_FUND | number:2}}元</i>
          </div>
        </li>
      </ion-list>
    </ion-content>
</ion-view>
